{% extends '__base__.html' %}

{% block title %}{{ book.name }}{% endblock %}



{% block content %}

    <div class="uk-width-medium-3-4">
        <div class="uk-alert uk-alert-danger">{{ message }}</div>
        <article class="uk-article">
            <h2>{{ book.name }}</h2>
            <p class="uk-article-meta">发表于{{ book.created_at|datetime }}</p>
            <img src="{{book.imgUrl}}" width="256" height="256">
            <p>{{ book.html_content|safe }}</p>
        </article>

        <hr class="uk-article-divider">




    </div>

    <div class="uk-width-medium-1-4">
        <div class="uk-panel uk-panel-box">
            <div class="uk-text-center">
                <img class="uk-border-circle" width="120" height="120" src="{{ book.user_image }}">
                <h3>{{ book.user_name }}</h3>
                <a href="/borrow/{{ book.id }}"><i class="uk-icon-sign-in"></i>借阅该书</a>
            </div>
        </div>
      <!--  <div class="uk-panel uk-panel-header">
            <h3 class="uk-panel-title">友情链接</h3>
            <ul class="uk-list uk-list-line">
                <li><i class="uk-icon-link"></i> <a href="#">编程</a></li>
                <li><i class="uk-icon-link"></i> <a href="#">思考</a></li>
                <li><i class="uk-icon-link"></i> <a href="#">读书</a></li>
            </ul>
        </div>-->
    </div>

{% endblock %}
